package com.example.yoga.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liwenkai
 * @since 2021-03-10
 */
@TableName("user_card")
public class UserCard extends Model<UserCard> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户表主键
     */
    @TableId("userId")
    private Integer userid;

    /**
     * 卡务表主键
     */
    @TableField("cardId")
    private Integer cardid;


    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getCardid() {
        return cardid;
    }

    public void setCardid(Integer cardid) {
        this.cardid = cardid;
    }

    @Override
    protected Serializable pkVal() {
        return this.userid;
    }

    @Override
    public String toString() {
        return "UserCard{" +
        "userid=" + userid +
        ", cardid=" + cardid +
        "}";
    }
}
